<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="https://unpkg.com/vue/dist/vue.js"></script>
	</head>
	<body>
		<div id="app12">
			<ol>
				<li v-for="(todo,index) in todos">  <!-- 第二个参数可以作为索引-->  <!-- of也可以替代in-->
			      {{ todo.text }} - {{index}}
			    </li>
			</ol>
		</div>
	</body>
	<script>
		var app12=new Vue({
		  el: '#app12',
		  data: {
		    todos: [
		      { text: 'Learn JavaScript' },
		      { text: 'Learn Vue' },
		      { text: 'Build something awesome' }
		    ]
		  }
		
	})
	</script>
</html>
